icon browser: stop selecting
authorMatthias Clasen <mclasen@redhat.com>
Sun, 22 Feb 2015 16:11:09 +0000 (11:11 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 22 Feb 2015 19:44:09 +0000 (14:44 -0500)
We don't need the selection here.

demos/icon-browser/iconbrowserwin.c
demos/icon-browser/window.ui

index 39db09661d7679739aace14d028c3b20bed6bc79..50709a08ff651812f8d3294a92624937993cdfa4 100644 (file)
@@ -71,11 +71,6 @@ set_image (GtkWidget *image, const gchar *name, gint size)
   gtk_image_set_pixel_size (GTK_IMAGE (image), size);
 }
 
-static void
-selection_changed (GtkIconView *icon_view, IconBrowserWindow *win)
-{
-}
-
 static void
 item_activated (GtkIconView *icon_view, GtkTreePath *path, IconBrowserWindow *win)
 {
@@ -759,7 +754,6 @@ icon_browser_window_init (IconBrowserWindow *win)
   gtk_tree_model_filter_set_visible_func (win->filter_model, icon_visible_func, win, NULL);
   gtk_window_set_transient_for (GTK_WINDOW (win->details), GTK_WINDOW (win));
 
-
   g_signal_connect (win->searchbar, "notify::search-mode-enabled",
                     G_CALLBACK (search_mode_toggled), win);
 
@@ -794,7 +788,6 @@ icon_browser_window_class_init (IconBrowserWindowClass *class)
   gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (class), IconBrowserWindow, description);
 
   gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (class), search_text_changed);
-  gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (class), selection_changed);
   gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (class), item_activated);
   gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (class), selected_context_changed);
   gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (class), symbolic_toggled);
index 1318b9a238a84dc94ff7037a4fe8ede74aa85331..72eae953ce5f5cac1dc3bb2fbdbe24da91ed31ba 100644 (file)
                   <object class="GtkIconView" id="list">
                     <property name="visible">True</property>
                     <property name="model">filter_model</property>
-                    <signal name="selection_changed" handler="selection_changed"/>
+                    <property name="selection-mode">none</property>
                     <signal name="item_activated" handler="item_activated"/>
                     <child>
                       <object class="GtkCellRendererPixbuf" id="cell">